/*
 *    Copyright (c) 2018-2025, zhangjian All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the jfcloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: zhangjian (i_amzxj@163.com)
 */

package com.gitee.zeric.codec.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 系统编码生成规则模块
 *
 * @author zhangjian
 * @date 2021-12-07 14:44:01
 */
@Data
@ApiModel(value = "系统编码生成规则")
public class SysCodeRuleGenerateDTO implements Serializable {


    private static final long serialVersionUID = -4956421286869008219L;

    /**
     * 编号
     */
    @ApiModelProperty(value = "编号")
    private Integer id;

    /**
     * 规则名称
     */
    @ApiModelProperty(value = "规则名称")
    @NotBlank(message = "规则名称不能为空！")
    private String name;

    /**
     * 规则code
     */
    @ApiModelProperty(value = "规则code")
    private String ruleCode;

    /**
     * 规则类型
     */
    @ApiModelProperty(value = "规则类型")
    @NotBlank(message = "规则类型不能为空！")
    private String ruleType;

    /**
     * 共有或私有，共有为-999 私有为orgid
     */
    private Integer privateOrg;

    /**
     * 业务分类
     */
    private String businessType;


    @ApiModelProperty(value = "自定义常量值")
    private String ruleValue;


    @ApiModelProperty(value = "解析规则")
    private String rulePlaceholder;

    /**
     * 规则实现类
     */
    @ApiModelProperty(value = "规则实现类")
    private String implementClass;

    /**
     * 规则参数
     */
    @ApiModelProperty(value = "规则参数")
//    @NotBlank(message = "规则参数不能为空！")
    private String ruleParam;

    /**
     * 规则描述
     */
    @ApiModelProperty(value = "规则描述")
    private String description;

    /**
     * 租户信息
     */
    @ApiModelProperty(value = "租户信息")
    private Integer tenantId;

}
